package admin.board.genre.action;

import java.sql.SQLException;

import admin.board.genre.dao.GenreDao;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class DeleteAction extends ActionSupport {
	private GenreDao dao;

	private int genre_no;
	
	public DeleteAction() {
		dao = GenreDao.getInstance();
	}
	
	public String execute() throws SQLException {
		dao.delete(genre_no);
		
		return SUCCESS;
	}

	public void setGenre_no(int genre_no) {
		this.genre_no = genre_no;
	}
	
	
}
